<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="id" label="用户编号"></el-table-column>
      <el-table-column prop="username" label="用户名"></el-table-column>
      <el-table-column prop="name" label="姓名"></el-table-column>
      <el-table-column prop="loanapplication.status" label="贷款进度"></el-table-column>
      <el-table-column prop="loanrepayment.paymentStatus" label="还款进度"></el-table-column>
    </el-table>

  </div>
</template>

<script>

  import axios from 'axios';
  export default {
    name: "borrower",
    data() {
      return {
        tableData: [],
      }
    },
    methods: {
      findAll:function () {
        axios.get("http://localhost:9999/credit-usermessage/findUsermessageAll").then(res=>{
          /*alert(res.data)*/
          console.log(res.data)
          this.tableData=res.data
        })
      }
    },
    mounted(){
      this.findAll();
    }
  }
</script>

<style scoped>

</style>
